from main import MemcacheQueue

def connect():
    import random, string
    import memcache
    
    name = 'queue'+''.join(random.choice(string.letters) for i in range(10))
    memcache_client = memcache.Client(['127.0.0.1:11211'])
    return MemcacheQueue(name, memcache_client)